﻿Public Class _Default
    Inherits System.Web.UI.Page

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

    End Sub

    Protected Sub btnADD_Click(ByVal sender As Object, ByVal e As EventArgs) Handles btnADD.Click

        Dim firstNo As Decimal
        Dim secondNo As Decimal
        Dim total As Decimal

        firstNo = Val(txtbxFirstNo.Text)
        secondNo = Val(txtbxSecondNo.Text)

        total = firstNo + secondNo

        lblAnswer.Visible = True
        lblAnswer.Text = "<strong>Result: &nbsp;</strong> The sum of &nbsp;" + Convert.ToString(firstNo) + "&nbsp; and &nbsp;" + Convert.ToString(secondNo) + "&nbsp; is &nbsp;" + Convert.ToString(total)

    End Sub


    Protected Sub btnRefresh_Click(ByVal sender As Object, ByVal e As EventArgs) Handles btnRefresh.Click
        Response.Redirect(Request.RawUrl)
    End Sub

End Class